#ifndef _HASHTABLE_H_
#define _HASHTABLE_H_

#include <stdbool.h>

struct hash_table;

struct hash_table *hash_create(unsigned int chains);
void hash_destroy(struct hash_table *ht);
bool hash_add(struct hash_table *ht, const char *key, const char *value);
const char *hash_get(struct hash_table *ht, const char *key);
const char *hash_iterate(struct hash_table *ht, unsigned int *c1,
		unsigned int **c2);

#endif

